home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Announcer
/
Announcing.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
596b
|
36 lines
// Announcing.h
#ifndef Announcing_h
#define Announcing_h
#ifndef Announcer_h
#include "Announcer.h"
#endif
template < class ValueType > class Modifier;
template < class ValueType >
class Announcing: public Announcer
{
friend class Modifier< ValueType >;
private:
ValueType value;
public:
Announcing( const ValueType& initialValue )
: value( initialValue )
{}
operator const ValueType&() const { return value; }
const ValueType& Value() const { return value; }
void operator=( const ValueType& );
{
value = newValue;
Announce();
}
};
#endif